package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.handler.IJobHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class GlueSampleXxlJob extends IJobHandler {
    private static transient final Logger log = LoggerFactory.getLogger(GlueSampleXxlJob.class);

    @Override
    public void execute() throws Exception {
        try{
            log.info("XXL-JOB, Hello World.");
        } catch (Exception e) {
            if (e instanceof InterruptedException) {
                throw e;
            }
            log.warn("{}", e);
        }
    }
}
